package kr.hkit.powerjava.chaper05.work;

import java.util.Scanner;

public class work16 {
	public static void main(String[] args) {
		
		byte length, width, height;
		int result;
		
		Scanner input = new Scanner(System.in);
		System.out.print("상자의 길이를 입력하시오: ");
		length = input.nextByte();
		System.out.print("상자의 너비를 입력하시오: ");
		width = input.nextByte();
		System.out.print("상자의 높이를 입력하시오: ");
		height = input.nextByte();
		
		result = length * width * height;
		if (length>100 || width>100 || height>100){ 
			System.out.println("초과");
		}
			else {System.out.println("결과값은: " + result + "입니다.");
				}
	}
}
